import serveUrl from '@/config/serverAddress'; // 接口域名列表
import axios from '@/config/http'; // 导入http中创建的axios实例

const documentManage = {
  GetSubCompanyTree(params) {
    return axios.get(`${serveUrl.cs}/Document/GetSubCompanyTree`, { params });
  },
  GetFilePageList(params) {
    return axios.post(`${serveUrl.cs}/Document/GetFilePageList`, params);
  },

  DeleteDocument(params) {
    return axios.post(`${serveUrl.cs}/Document/DeleteDocument`, params);
  },

  GetDocData(params) {
    return axios.post(`${serveUrl.cs}/Document/GetDocData`, params);
  },

  GetDocumentScanList(params) {
    return axios.post(`${serveUrl.cs}/Document/GetDocumentScanList`, params);
  },

  NewUploadFile(params) {
    return axios.post(`${serveUrl.cs}/Document/NewUploadFile`, params);
  },

  GetSelectUserInfo(params) {
    return axios.get(`${serveUrl.cs}/Document/GetSelectUserInfo`, { params });
  },

  AddDocAuth(params) {
    return axios.post(`${serveUrl.cs}/Document/AddDocAuth`, params);
  },

  EditDocAuth(params) {
    return axios.post(`${serveUrl.cs}/Document/EditDocAuth`, params);
  },

  GetDeptUserInfo(params) {
    return axios.get(`${serveUrl.cs}/Common/GetDeptUserInfo`, { params });
  },

  GetAllDeptInfo(params) {
    return axios.get(`${serveUrl.cs}/Common/GetAllDeptInfo`, { params });
  },

  RegFileName(params) {
    return axios.post(`${serveUrl.cs}/Document/RegFileName`, params);
  },

  GetDocDetail(params) {
    return axios.get(`${serveUrl.cs}/Document/GetDocDetail`, { params });
  },

  GetSpaceInfo(params) {
    return axios.get(`${serveUrl.cs}/Document/GetSpaceInfo`);
  },

};
export default documentManage;
